<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateVisitorTypeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('visitorType', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('cmpId');
            $table->string('typeName')->comment('类型名称');
            $table->tinyInteger('status')->comment('类型状态');
            $table->tinyInteger('isAdd')->comment('是否新增,1为新增');
            $table->tinyInteger('type')->comment('1面试，2客户,3亲友，4其他');
        });
        DB::statement("ALTER TABLE `visitorType` comment '访客类型表'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
